package com.controller;

/**
 * Created by lirance on 16/5/11.
 * 随机删除数据库
 */
public class RandomDelet {
    /*public static void main(String[] args) throws Exception {
        for (int i = 1; i < 151; i++) {
            int num = 200 + new Random().nextInt(10) + 1;//随机删除85-100个服务
            for (int j = 0; j < num; j++) {
                int random = new Random().nextInt(101) + 1;
                String sql1 = "delete from serviceCalled where uId = " + i + " and wsId = " + random;
                Db.getInstance().executeUpdate(sql1);
            }
        }
        String sql = "delete from serviceCalled order by rand() limit 40000";
        Db.getInstance().executeUpdate(sql);
    }*/
}
